<!DOCTYPE html>
<html xmlns:wb="http://open.weibo.com/wb">
<head>
  <meta charset="utf-8">
  <script src="https://cdn.jsdelivr.net/gh/Sanarous/files@1.13/js/linkcard.js"></script>
  <script>
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?fc9a8559a133f4d8ce784d69d6337bb0";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

  
  <title>centos7中redis、mongodb、kafka安装记录 | 涂宗勋的博客</title>
  <meta name="baidu-site-verification" content="o8pWlgAEZ7" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="一个完整的java后台系统，通常会涉及到非常多的技术，例如数据库、缓存、消息中间件等，除此之外，从部署层面讲，可能还离不开nginx、docker这些，要更加熟练的使用这些技术，加深理解，必不可少的需要有自己的环境。随着上次centos6.5的系统升级到centos7.8，打算把hadoop、redis、mongodb、kafka等这些软件都迁移到新的虚拟机系统中，docker和hadoop的安装">
<meta property="og:type" content="article">
<meta property="og:title" content="centos7中redis、mongodb、kafka安装记录">
<meta property="og:url" content="https://tuzongxun.gitee.io/2020/09/08/linux3/index.html">
<meta property="og:site_name" content="涂宗勋的博客">
<meta property="og:description" content="一个完整的java后台系统，通常会涉及到非常多的技术，例如数据库、缓存、消息中间件等，除此之外，从部署层面讲，可能还离不开nginx、docker这些，要更加熟练的使用这些技术，加深理解，必不可少的需要有自己的环境。随着上次centos6.5的系统升级到centos7.8，打算把hadoop、redis、mongodb、kafka等这些软件都迁移到新的虚拟机系统中，docker和hadoop的安装">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-09-08T15:09:42.000Z">
<meta property="article:modified_time" content="2020-10-13T04:28:05.809Z">
<meta property="article:author" content="涂宗勋">
<meta property="article:tag" content="linux">
<meta name="twitter:card" content="summary">
  
  
    <link rel="icon" href="/images/touxiang.png">
  
  
    
  
  
<link rel="stylesheet" href="/tzxblog/css/style.css">

  

<meta name="generator" content="Hexo 4.2.1"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <script src="https://tjs.sjs.sinajs.cn/open/api/js/wb.js" type="text/javascript" charset="utf-8"></script>
  <script src="https://cdn.jsdelivr.net/gh/Sanarous/files@1.13/js/linkcard.js"></script>
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    
    <div id="header-inner" class="inner">
      <nav id="sub-nav">
        
        <a id="nav-search-btn" class="nav-icon" title="搜索"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="https://tuzongxun.gitee.io"></form>
      </div>
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/tzxblog/">首页</a>
        
          <a class="main-nav-link" href="/tzxblog/shuoshuo/">说说</a>
        
          <a class="main-nav-link" href="/tzxblog/archives/">归档</a>
        
          <a class="main-nav-link" href="/tzxblog/collections/">导航</a>
        
          <a class="main-nav-link" href="/tzxblog/download/">资源</a>
        
          <a class="main-nav-link" href="/tzxblog/about/">简历</a>
        
      </nav>
      
    </div>
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/tzxblog/" id="logo">涂宗勋的博客</a>
      </h1>
      
        <h2 id="subtitle-wrap">
          <a href="/tzxblog/" id="subtitle">java程序员，现居武汉，CSDN博客https://blog.csdn.net/tuzongxun</a>&nbsp;&nbsp;&nbsp;&nbsp;
		  <!--<span id="busuanzi_container_site_pv">【本站累计访问量:<span id="busuanzi_value_site_pv"></span>】</span>-->
        </h2>
		
      
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-linux3" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/tzxblog/2020/09/08/linux3/" class="article-date">
  <time datetime="2020-09-08T15:09:42.000Z" itemprop="datePublished">2020-09-08</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/tzxblog/categories/linux/">linux</a>
  </div>

</span>
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      centos7中redis、mongodb、kafka安装记录
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <!-- Table of Contents -->
        
        <p>一个完整的java后台系统，通常会涉及到非常多的技术，例如数据库、缓存、消息中间件等，除此之外，从部署层面讲，可能还离不开nginx、docker这些，要更加熟练的使用这些技术，加深理解，必不可少的需要有自己的环境。<br>随着上次centos6.5的系统升级到centos7.8，打算把hadoop、redis、mongodb、kafka等这些软件都迁移到新的虚拟机系统中，docker和hadoop的安装部署最近都有相关记录，这次先补充redis、mongodb和kafka。</p>
<a id="more"></a>
<h2 id="redis安装"><a href="#redis安装" class="headerlink" title="redis安装"></a>redis安装</h2><p>redis的安装，实际上也是最近有过记录，可以参考<a href="https://tuzongxun.blog.csdn.net/article/details/107170447" target="_blank" rel="noopener">Linux中redis安装及软件安装相关Linux知识要点</a>。<br>需要说明的是，系统升级到centos7.8后，安装过程有一点波折，解决办法参考如下转载的两篇文章：<br><a href="https://tuzongxun.blog.csdn.net/article/details/108461134" target="_blank" rel="noopener">https://tuzongxun.blog.csdn.net/article/details/108461134</a><br><a href="https://tuzongxun.blog.csdn.net/article/details/108461618" target="_blank" rel="noopener">https://tuzongxun.blog.csdn.net/article/details/108461618</a></p>
<h2 id="mongodb安装"><a href="#mongodb安装" class="headerlink" title="mongodb安装"></a>mongodb安装</h2><h3 id="下载安装包"><a href="#下载安装包" class="headerlink" title="下载安装包"></a>下载安装包</h3><p>在<a href="https://www.mongodb.com/try/download/community这个页面选择需要的安装类型、版本和环境，然后复制下载链接，例如https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-4.4.0.tgz，然后可以在linux中使用wget下载安装包：" target="_blank" rel="noopener">https://www.mongodb.com/try/download/community这个页面选择需要的安装类型、版本和环境，然后复制下载链接，例如https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-4.4.0.tgz，然后可以在linux中使用wget下载安装包：</a></p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">wget https:&#x2F;&#x2F;fastdl.mongodb.org&#x2F;linux&#x2F;mongodb-linux-x86_64-rhel70-4.4.0.tgz</span><br></pre></td></tr></table></figure>
<h3 id="解压"><a href="#解压" class="headerlink" title="解压"></a>解压</h3><p>使用tar解压安装包:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">tar xf mongodb-linux-x86_64-rhel70-4.4.0.tgz</span><br></pre></td></tr></table></figure>
<p>我规划的安装目录是<code>/opt/mongodb</code>，解压完的名字太长就重命名了下，之后整个安装目录为<code>/opt/mongodb/mongodb4.4</code>。</p>
<h3 id="配置"><a href="#配置" class="headerlink" title="配置"></a>配置</h3><p>mongodb可以什么都不配置，完全使用默认方式启动，但是启动可能会报错，因为默认需要几个目录。<br>但是为了一步到位，我选择直接使用配置文件方式启动，在<code>/opt/mongodb/mongodb4.4</code>目录下创建conf目录，然后在目录中创建mongodb.conf文件并加入如下内容：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">dbpath&#x3D;&#x2F;opt&#x2F;mongodb&#x2F;mongodb4.4&#x2F;data&#x2F;</span><br><span class="line">logpath&#x3D;&#x2F;opt&#x2F;mongodb&#x2F;mongodb4.4&#x2F;logs&#x2F;mongodb.log</span><br><span class="line">fork&#x3D;true</span><br><span class="line">port&#x3D;27017</span><br><span class="line">bind_ip&#x3D;0.0.0.0</span><br><span class="line">auth&#x3D;false</span><br></pre></td></tr></table></figure>
<p>要注意的是，上边目录和文件名的命令都是可以自定义的。<br>上述内容含义如下：</p>
<blockquote>
<p>指定数据存储目录；<br>指定日志存储目录；<br>开启后台运行；<br>指定端口号（27017默认，不指定也可以）；<br>配置绑定ip，0.0.0.0可以任意机器访问；<br>关闭用户权限认证</p>
</blockquote>
<p>上述配置中有指定目录和文件，和hadoop配置文件里的目录和文件会自动创建不同，mongodb这里的不会自己创建，所以相关目录需要提前创建好。</p>
<h3 id="配置环境变量"><a href="#配置环境变量" class="headerlink" title="配置环境变量"></a>配置环境变量</h3><p>这是个常规操作，就不多说了，目的是为了更方便的执行相关命令，而不用每次都进入或者层层指定安装目录。<br>之前有java、redis，加入mongodb后的<code>/etc/profile</code>相关内容如下：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">export JAVA_HOME&#x3D;&#x2F;opt&#x2F;java&#x2F;jdk1.8.0_261</span><br><span class="line">export REDIS_HOME&#x3D;&#x2F;opt&#x2F;redis&#x2F;redis6</span><br><span class="line">export MONGODB_HOME&#x3D;&#x2F;opt&#x2F;mongodb&#x2F;mongodb4.4</span><br><span class="line">export PATH&#x3D;$PATH:$JAVA_HOME&#x2F;bin:$REDIS_HOME&#x2F;bin:$MONGODB_HOME&#x2F;bin</span><br></pre></td></tr></table></figure>

<h3 id="启动和验证"><a href="#启动和验证" class="headerlink" title="启动和验证"></a>启动和验证</h3><p>mongodb安装较简单，有了上边配置，即可使用配置文件方式启动，例如：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">mongod -f &#x2F;opt&#x2F;mongodb&#x2F;mongodb4.4&#x2F;conf&#x2F;mongodb.conf</span><br></pre></td></tr></table></figure>

<p>然后可以使用mongo命令进入自带的客户端操作界面验证是否真的安装部署成功。</p>
<h2 id="kafka安装"><a href="#kafka安装" class="headerlink" title="kafka安装"></a>kafka安装</h2><p>kafka之前一直在用，但是都是用的公司开发环境上的，自己的环境上实际还是第一次安装，不过，这些安装也都大同小异：</p>
<h3 id="下载安装包-1"><a href="#下载安装包-1" class="headerlink" title="下载安装包"></a>下载安装包</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">wget https:&#x2F;&#x2F;downloads.apache.org&#x2F;kafka&#x2F;2.6.0&#x2F;kafka_2.12-2.6.0.tgz</span><br></pre></td></tr></table></figure>

<h3 id="解压-1"><a href="#解压-1" class="headerlink" title="解压"></a>解压</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">tar -xf kafka_2.12-2.6.0.tgz</span><br></pre></td></tr></table></figure>

<h3 id="配置-1"><a href="#配置-1" class="headerlink" title="配置"></a>配置</h3><p>kafka依赖于zookeeper，本身就自带一个zookeeper，所以不改配置也可以。<br>只不过一般还是都会使用外部的zookeeper，而搭建hdfs-ha模式时，我也刚好搭建了zookeeper集群，所以kafka自然也就使用这个zookeeper集群了，需要修改安装目录下的配置文件，例如<code>/opt/kafka/kafka_2.12-2.6.0/config</code>下的<code>server.properties</code>，把<code>zookeeper.connect</code>改成如下配置：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">zookeeper.connect&#x3D;node002:2181,node003:2181,node004:2181</span><br></pre></td></tr></table></figure>

<h3 id="环境变量"><a href="#环境变量" class="headerlink" title="环境变量"></a>环境变量</h3><p>和上边一样，为了方便操作，也配置一下环境变量，加入kafka之后的<code>/etc/profile</code>相关内容如下：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">export JAVA_HOME&#x3D;&#x2F;opt&#x2F;java&#x2F;jdk1.8.0_261</span><br><span class="line">export REDIS_HOME&#x3D;&#x2F;opt&#x2F;redis&#x2F;redis6</span><br><span class="line">export MONGODB_HOME&#x3D;&#x2F;opt&#x2F;mongodb&#x2F;mongodb4.4</span><br><span class="line">export KAFKA_HOME&#x3D;&#x2F;opt&#x2F;kafka&#x2F;kafka_2.12-2.6.0</span><br><span class="line">export PATH&#x3D;$PATH:$JAVA_HOME&#x2F;bin:$REDIS_HOME&#x2F;bin:$MONGODB_HOME&#x2F;bin:$KAFKA_HOME&#x2F;bin</span><br></pre></td></tr></table></figure>

<h3 id="启动"><a href="#启动" class="headerlink" title="启动"></a>启动</h3><p>配置好以后，就可以使用配置文件启动kafka:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">kafka-server-start.sh &#x2F;opt&#x2F;kafka&#x2F;kafka_2.12-2.6.0&#x2F;config&#x2F;server.properties</span><br></pre></td></tr></table></figure>

<h3 id="验证"><a href="#验证" class="headerlink" title="验证"></a>验证</h3><p>这里验证包括三步，分别是创建topic、生产消息和消费消息，首先创建一个名为test的topic：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">kafka-topics.sh --create --zookeeper node002:2181,node003:2181,node004:2181  --replication-factor 1 --partitions 1 --topic test</span><br></pre></td></tr></table></figure>
<p>执行结果输出如下：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Created topic test</span><br></pre></td></tr></table></figure>

<p>topic创建好了之后，可以直接使用上边的topic生产和消费消息，也可以先看一下topic列表：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">kafka-topics.sh  -list --zookeeper node002:2181,node003:2181,node004:2181</span><br></pre></td></tr></table></figure>

<p>为了验证创建的topic确实可用，则命令行连接kafka向指定topic发送消息：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">kafka-console-producer.sh --broker-list node001:9092 --topic test</span><br></pre></td></tr></table></figure>

<p>然后可以退出上述操作界面，或者直接新开一个界面再连接kafka消费指定topic的消息：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">kafka-console-consumer.sh --bootstrap-server node000:9092 --topic test --from-beginning</span><br></pre></td></tr></table></figure>
      
    </div>
    <footer class="article-footer">
      <a data-url="https://tuzongxun.gitee.io/2020/09/08/linux3/" data-id="ckxn7cxgv0025kcvhgs1l7vig" class="article-share-link">分享</a>
      
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tzxblog/tags/linux/" rel="tag">linux</a></li></ul>

    </footer>
  </div>
  
    
  <div class="comments" id="comments">
    
     
       
       
      
      
	 
  </div>
 
    
 
<script src="/tzxblog/jquery/jquery.min.js"></script>

  <div id="random_posts">
    <h2>推荐文章</h2>
    <div class="random_posts_ul">
      <script>
          var random_count =5
          var site = {BASE_URI:'/tzxblog/'};
          function load_random_posts(obj) {
              var arr=site.posts;
              if (!obj) return;
              // var count = $(obj).attr('data-count') || 6;
              for (var i, tmp, n = arr.length; n; i = Math.floor(Math.random() * n), tmp = arr[--n], arr[n] = arr[i], arr[i] = tmp);
              arr = arr.slice(0, random_count);
              var html = '<ul>';
            
              for(var j=0;j<arr.length;j++){
                var item=arr[j];
                html += '<li><strong>' + 
                item.date + ':&nbsp;&nbsp;<a href="' + (site.BASE_URI+item.uri) + '">' + 
                (item.title || item.uri) + '</a></strong>';
                if(item.excerpt){
                  html +='<div class="post-excerpt">'+item.excerpt+'</div>';
                }
                html +='</li>';
                
              }
              $(obj).html(html + '</ul>');
          }
          $('.random_posts_ul').each(function () {
              var c = this;
              if (!site.posts || !site.posts.length){
                  $.getJSON(site.BASE_URI + 'js/posts.js',function(json){site.posts = json;load_random_posts(c)});
              } 
               else{
                load_random_posts(c);
              }
          });
      </script>
    </div>
  </div>

	
<nav id="article-nav">
  
    <a href="/tzxblog/2020/09/23/hadoop8/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">上一篇</strong>
      <div class="article-nav-title">
        
          hbase-ha模式搭建要点和问题记录
        
      </div>
    </a>
  
  
    <a href="/tzxblog/2020/09/04/docker2/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">下一篇</strong>
      <div class="article-nav-title">使用docker部署springboot服务</div>
    </a>
  
</nav>

  
</article>

</section>
           
    <aside id="sidebar">
  
    <!--微信公众号二维码-->


  
    

  
    
  
    
    <div class="widget-wrap">
    
      <div class="widget" id="toc-widget-fixed">
      
        <strong class="toc-title">文章目录</strong>
        <div class="toc-widget-list">
              <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#redis安装"><span class="toc-number">1.</span> <span class="toc-text">redis安装</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#mongodb安装"><span class="toc-number">2.</span> <span class="toc-text">mongodb安装</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#下载安装包"><span class="toc-number">2.1.</span> <span class="toc-text">下载安装包</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#解压"><span class="toc-number">2.2.</span> <span class="toc-text">解压</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#配置"><span class="toc-number">2.3.</span> <span class="toc-text">配置</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#配置环境变量"><span class="toc-number">2.4.</span> <span class="toc-text">配置环境变量</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#启动和验证"><span class="toc-number">2.5.</span> <span class="toc-text">启动和验证</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#kafka安装"><span class="toc-number">3.</span> <span class="toc-text">kafka安装</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#下载安装包-1"><span class="toc-number">3.1.</span> <span class="toc-text">下载安装包</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#解压-1"><span class="toc-number">3.2.</span> <span class="toc-text">解压</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#配置-1"><span class="toc-number">3.3.</span> <span class="toc-text">配置</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#环境变量"><span class="toc-number">3.4.</span> <span class="toc-text">环境变量</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#启动"><span class="toc-number">3.5.</span> <span class="toc-text">启动</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#验证"><span class="toc-number">3.6.</span> <span class="toc-text">验证</span></a></li></ol></li></ol>
          </div>
      </div>
    </div>

  
    

  
    
  
    
  
    

  
</aside>

      </div>
      <footer id="footer">
  <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
  
  <div class="outer">
    <div id="footer-left">
      &copy; 2016 - 2021 涂宗勋&nbsp; <a href="https://beian.miit.gov.cn/#/Integrated/recordQuery" target="_blank" rel="noopener">鄂ICP备20000142号</a> |&nbsp;&nbsp;
      主题 <a href="https://github.com/giscafer/hexo-theme-cafe/" target="_blank">Cafe</a>&nbsp;|&nbsp;&nbsp;
	  <span id="busuanzi_container_site_uv">本站有效访客数<span id="busuanzi_value_site_uv"></span>人</span>
	  <span id="busuanzi_container_site_pv" >| 总访问量 <span id="busuanzi_value_site_pv"></span> 次 </span>
	  <div style="width:300px;margin:0 auto; padding:20px 0;"><a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=42010302002171"style="display:inline-block;text-decoration:none;height:20px;line-height:20px;"><img src="http://www.tzxcode.cn/wp-content/uploads/2020/01/备案图标.png" style="float:left;"/><p style="float:left;height:20px;line-height:20px;margin: 0px 0px 0px 5px; color:#939393;">鄂公网安备 42010302002171号</p></a>
		 	</div>
    </div>
     <div id="footer-right">
      联系方式&nbsp;|&nbsp;1160569243@qq.com
    </div>
	
  </div>
</footer>
 
<script src="/tzxblog/jquery/jquery.min.js"></script>

 <script>
$(document).ready(function() {

    var int = setInterval(fixCount, 50);  // 50ms周期检测函数
    var countOffset = 20000;  // 初始化首次数据

    function fixCount() {            
       if (document.getElementById("busuanzi_container_site_pv").style.display != "none")
        {
            $("#busuanzi_value_site_pv").html(parseInt($("#busuanzi_value_site_pv").html()) + countOffset); 
            clearInterval(int);
        }                  
        if ($("#busuanzi_container_site_pv").css("display") != "none")
        {
            $("#busuanzi_value_site_uv").html(parseInt($("#busuanzi_value_site_uv").html()) + countOffset); // 加上初始数据 
            clearInterval(int); // 停止检测
        }  
    }
       	
});
</script> 
    </div>
    <nav id="mobile-nav">
  
    <a href="/tzxblog/" class="mobile-nav-link">首页</a>
  
    <a href="/tzxblog/shuoshuo/" class="mobile-nav-link">说说</a>
  
    <a href="/tzxblog/archives/" class="mobile-nav-link">归档</a>
  
    <a href="/tzxblog/collections/" class="mobile-nav-link">导航</a>
  
    <a href="/tzxblog/download/" class="mobile-nav-link">资源</a>
  
    <a href="/tzxblog/about/" class="mobile-nav-link">简历</a>
  
</nav>
    <img class="back-to-top-btn" src="/images/fly-to-top.png"/>
<script>
// Elevator script included on the page, already.
window.onload = function() {
  var elevator = new Elevator({
    selector:'.back-to-top-btn',
    element: document.querySelector('.back-to-top-btn'),
    duration: 1000 // milliseconds
  });
}
</script>
      

  

  







<!-- author:forvoid begin -->
<!-- author:forvoid begin -->

<!-- author:forvoid end -->

<!-- author:forvoid end -->



 
<script src="/tzxblog/js/is.js"></script>



  
<link rel="stylesheet" href="/tzxblog/fancybox/jquery.fancybox.css">

  
<script src="/tzxblog/fancybox/jquery.fancybox.pack.js"></script>




<script src="/tzxblog/js/script.js"></script>


<script src="/tzxblog/js/elevator.js"></script>

  </div>
</body>
</html>